{if $arr_page.pages|@count gt 0}
<div id="page">
<ul class="pagination">
	<li><span class="total_page">{$arr_page.info}</span></li>
	{if $arr_page.current neq 1}
	<li><a class="page-item" rel="1" href="javascript:page_load_grid('grid',url_page+'1')">«&nbsp;Đầu</a></li>
	<li><a class="page-item" rel="{$arr_page.previous}" href="javascript:page_load_grid('grid',url_page+'{$arr_page.previous}')">«</a></li>
	 {/if}
	{foreach from=$arr_page.pages item=i}
	<li>{if $arr_page.current eq $i} <span class="active">{$i}</span>
	{else} <a class="page-item" rel="{$i}" href="javascript:page_load_grid('grid',url_page+'{$i}')">{$i}</a> {/if}</li>
	{/foreach} 
	{if $arr_page.current neq $arr_page.last}
	<li><a class="page-item" rel="{$arr_page.next}"  href="javascript:page_load_grid('grid',url_page+'{$arr_page.next}')">»</a></li>
	<li><a class="page-item" rel="{$arr_page.last}"  href="javascript:page_load_grid('grid',url_page+'{$arr_page.last}')">Cuối&nbsp;»</a></li>
	{/if}
</ul>
</div>
{/if}
